<?php

namespace App\Admin\Forms;





use App\Models\Team;

class PageContent extends Config
{

    public $title = '頁面內容';

    public function form()
    {
        $this->text('home_slogan', '首頁标语1');
        $this->textarea('home_slogan2', '首頁标语2');
        $this->text('home_about_title','介绍标题');
        $this->image('home_about_image', '介绍图片')->url('upload/files')->autoUpload();
        $this->weditor('home_about_text','介绍内容')->simple();

        /*$this->table('home_team_images','会馆图片展示', function (\Dcat\Admin\Form\NestedForm $table) {
            $table->image('image','图片')->url('upload/files')->autoUpload();
            $table->select('team_id','关联会馆')->options(Team::pluck('name','id'));
        })->saving(function ($v) {
            return json_encode($v);
        });*/
    }

}
